package com.sc.nft.entity.vo.secondEquityProp;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class EquityPropsLastConsignDetailsVO {

    @ApiModelProperty(value = "权益道具id")
    private Long equityPropsId;

    @ApiModelProperty(value = "二级市场id")
    private Long secondId;

    @ApiModelProperty(value = "名称")
    private String firstTitle;

    @ApiModelProperty(value = "缩略图")
    private String creationContent;

    @ApiModelProperty(value = "最新成交iao")
    private String newDeal;

    @ApiModelProperty(value = "最低价")
    private String minPrice;

    @ApiModelProperty(value = "最低手续费")
    private String minCharge;

    @ApiModelProperty(value = "最高价")
    private String maxPrice;


    public void setNewDeal(BigDecimal newDeal) {
        this.newDeal = newDeal.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

    public void setMinPrice(BigDecimal minPrice) {
        this.minPrice = minPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

    public void setMaxPrice(BigDecimal maxPrice) {
        this.maxPrice = maxPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
